<template>
  <div>
    <Nav></Nav>
    <Footer></Footer>
    <Music></Music>
  </div>
</template>
<script>
import Nav from "../components/Nav.vue";
import Footer from "../components/Footer.vue";
import Music from "../components/Music.vue";
export default {
  components: { Nav, Footer, Music },
  data() {
    return {
      music: true,
      recommend: true,
    };
  },
  watch: {
    $route() {
      // 锚点定位
      document.querySelector("body").scrollIntoView({
        block: "start" // 上边框与视窗顶部部平齐
      });
    },
  },
};
</script>
